import App from "@/page/App";
import VueRouter from "vue-router";
import SequeuceQuery from "@/page/framework/SequeuceQuery";
import TextCopyMain from "@/page/bm01/TextCopyMain";
import CopyText1024Page from "@/page/bm01/CopyText1024Page";
import SysParamQuery from "@/page/framework/SysParamQuery";
import TestPage from "@/page/dev-test/TestPage";
import SqlGeneratorPage from "@/page/bm03/SqlGeneratorPage";
import McRecipePage from "@/page/bm02/McRecipePage";
import McRecipeManagePage from "@/page/bm02/McRecipeManagePage";
import McItemManagePage from "@/page/bm02/McItemManagePage";
import Login from "@/page/Login";
import MysqlSqlGeneratorPage from "@/page/bm03/MysqlSqlGeneratorPage";
import IrmOper from "@/page/bm04/IrmOper";
import IrmMockQuery from "@/page/bm04/IrmMockQuery";
import IrmMsgLogQuery from "@/page/bm04/IrmMsgLogQuery";
import CacheManage from "@/page/framework/CacheManage";
import CopyImg1024Page from "@/page/bm01/CopyImg1024Page";
import RoleManageMain from "@/page/cm01/role/RoleManageMain";
import TradeInfoMain from "@/page/bm06/TradeInfoMain";
import TagsScan from "@/page/bm05/TagsScan";
import CopyTaskQuery from "@/page/bm01/CopyTaskQuery";
import AddTestQuestion from "@/page/bm08/AddTestQuestion";
import TestQuestionQueryMain from "@/page/bm08/TestQuestionQueryMain";
import TestQuestionWindowMain from "@/page/bm08/TestQuestionWindowMain";
import TestQuestionTotalMain from "@/page/bm08/TestQuestionTotalMain";
import ExportTestQuestion from "@/page/bm08/ExportTestQuestion";
import EmcyImportPage from "@/page/bm09/EmcyImportPage";
import Ck3ModifyManagePage from "@/page/bm02/Ck3ModifyManagePage";
import Ck3ModifyQueryPage from "@/page/bm02/Ck3ModifyQueryPage";
import Ck3ModifyGeneratorPage from "@/page/bm02/Ck3ModifyGeneratorPage";
import EmcyIncreamentAnalysis from "@/page/bm09/EmcyIncreamentAnalysis.vue";

const router = [
    {
        path:'/App', name: 'App', component: App,
        children: [
            {path: '/SequeuceQuery', name:'SequeuceQuery', component: SequeuceQuery},
            {
                path: '/TextCopy', name: 'TextCopyMain', component: TextCopyMain,
                children:[
                    {path: '/CopyTxt1024', name: 'CopyTxt1024', component: CopyText1024Page},
                    {path: '/CopyImg1024', name: 'CopyImg1024', component: CopyImg1024Page}
                ]
            },
            {path: '/CopyTaskQuery', name: 'CopyTaskQuery', component: CopyTaskQuery},
            {path: '/SysParamQuery', name:'SysParamQuery', component: SysParamQuery},
            {path: '/TestPage', name: 'TestPage', component: TestPage},
            {path: '/SqlGenerator', name: 'SqlGenerator', component: SqlGeneratorPage},
            {path: '/MysqlSqlGenerator', name: 'MysqlSqlGenerator', component: MysqlSqlGeneratorPage},
            {path: '/McRecipe', name:'McRecipe', component: McRecipePage},
            {path: '/McRecipeManage', name:'McRecipeManage', component: McRecipeManagePage},
            {path: '/McItemManagePage', name: 'McItemManagePage', component: McItemManagePage},
            {path: '/IrmMsgLogQuery', name: 'IrmMsgLogQuery', component: IrmMsgLogQuery},
            {path: '/IrmMockQuery', name: 'IrmMockQuery', component: IrmMockQuery},
            {path: '/IrmOper', name: 'IrmOper', component: IrmOper},
            {path: '/CacheManange', name: 'CacheManage', component: CacheManage},
            {path: '/RoleManage', name: 'RoleManage', component: RoleManageMain},
            {path: '/TradeInfoMain', name: 'TradeInfoMain', component: TradeInfoMain},
            {path: '/TagsScan', name: 'TagsScan' ,component:TagsScan},
            {path: '/AddTestQuestion', name: 'TagsScan' ,component:AddTestQuestion},
            {path: '/TestQuestionQueryMain', name: 'TagsScan' ,component:TestQuestionQueryMain},
            {path: '/TestQuestionWindowMain', name: 'TagsScan' ,component:TestQuestionWindowMain},
            {path: '/TradeInfoMain', name: 'TradeInfoMain', component: TradeInfoMain},
            {path: '/TestQuestionTotalMain', name: 'TestQuestionTotalMain', component: TestQuestionTotalMain},
            {path: '/QuestionExport', name: 'ExportTestQuestion', component: ExportTestQuestion},
            {path: '/ImportEmcyData', name: 'EmcyImportPage', component: EmcyImportPage},
            {path: '/Ck3ModifyManage', name: 'Ck3ModifyManagePage', component: Ck3ModifyManagePage},
            {path: '/Ck3ModifyQueryPage', name:'Ck3ModifyQueryPage', component: Ck3ModifyQueryPage},
            {path: '/Ck3ModifyGeneratorPage', name: 'Ck3ModifyGeneratorPage', component: Ck3ModifyGeneratorPage},
            {path: '/EmcyIncreamentAnalysis', name: 'EmcyIncreamentAnalysis', component: EmcyIncreamentAnalysis}
        ]
    },{
        path:'/Login', name: 'Login', component: Login
    }
];
const gadgetsRouter = new VueRouter({
    routes:router
});
const VueRouterPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(to) {
    return VueRouterPush.call(this,to).catch(err => err);
}

export default gadgetsRouter;
